package com.challenge.smsweb.majormanage;

import com.challenge.smsbase.Controller.GenericController;
import com.challenge.smsdao.majormanage.domain.Academy;
import com.challenge.smsservice.majormanage.service.AcademyManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TY
 */
@RestController
@RequestMapping("academy")
public class AcademyController extends GenericController<Academy,Long, AcademyManager> {
    AcademyManager academyManager;

    /**
     * setAcademyManager
     * @param academyManager
     */
    @Autowired
    public void setAcademyManager(AcademyManager academyManager) {
        this.academyManager = academyManager;
        this.manager = this.academyManager;
    }
}
